package com.devunion.bogdan.view.project.actions;

import org.apache.log4j.Logger;
import com.devunion.bogdan.model.project.*;

import javax.swing.*;
import java.awt.event.ActionEvent;

class ProjectCloseAction extends AbstractAction {
    private static Logger log = Logger.getLogger(ProjectCloseAction.class);

    public void actionPerformed(ActionEvent e) {
        try {
            ProjectManager.getInstance().closeProject();
        } catch (ProjectSavingException e1) {
            log.error(e1.getMessage(), e1);
        }
    }
}
